<?php

/**
 * 客服管理
 * File Name：KefuController.php
 * File Encoding：UTF-8
 * File New Time：2014-5-31 9:26:18
 * Author：水平凡
 * Mailbox：admin@abc3210.com
 */
class KefuController extends AdminBase {

    public function actionIndex() {
        //条件数组
        $where = array(
            'type'=>array('neq',4),
            'order' => 'listorder desc,id desc',
        );
        $this->basePage('ServiceModel', $where);
        $this->render();
    }

    public function actionAdd() {
        $this->baseAdd('ServiceModel', 'index');
    }

    public function actionEdit() {
        $this->baseEdit('ServiceModel', 'index');
    }

    public function actionDelete() {
        $this->baseDelete('ServiceModel', 'index');
    }
    /**
     * 添加卖家兄弟QQ群
     */
    public function actionSalGroup(){
        $this->baseAdd('ServiceModel', 'salgroup');
    }
    /**
     * 显示卖家群并可以搜索
     */
    public function actionGroup(){
        $where = array(
            'type'=>4,
            
            'order' => 'disabled desc',
        );
        $this->basePage('ServiceModel', $where);
        $this->render();    
    }
    /**
     * 编辑卖家群
     */
    public function actionEditGroup(){
         $this->baseEdit('ServiceModel', 'group');
    }

}
